<template>
  <div class="firm_item" @click="firmItemClick">
    <div class="firm_name">{{firmItem._id}}</div>
    <div class="interview">
      <div class="counter">{{firmItem.count}}</div>
      <div>面试经验</div>
    </div>
  </div>
</template>

<script>
  import {routerPush} from "common/Utils";

  export default {
    name: "FirmItem",
    props: {
      firmItem: {
        type: Object,
        default() {
          return {}
        }
      }
    },
    methods: {
      firmItemClick() {
        routerPush(this.$router, 'firm/detail/' + this.firmItem._id)
      }
    }
  }
</script>

<style scoped>
  .firm_item {
    overflow: hidden;
    width: 100%;
    height: 70px;
    padding: 0 20px;
    margin-top: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #eeeeee;
    background-color: #fff;
  }

  .firm_item:hover {
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,0,0,.1);
  }

  .firm_name {
    float: left;
    font-weight: 700;
    font-size: 16px;
    line-height: 70px;
  }

  .interview {
    float: right;
    margin: 12px 20px 0 0;
    font-size: 14px;
    text-align: center;
  }

  .counter {
    margin-bottom: 10px;
  }
</style>
